<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<%-- 权限判断 --%>
<shield:permssion type="button">
<table class="tab-list shield-table-odd ">
    <tr>
        <th class="w50 taCenter">序号</th>
	    <th>用户姓名</th>
	     <th>手机号</th>
	     <th>性别</th>
        <th class="operate_icon">操作</th>
    </tr>
<c:forEach var="model" items="${pageBean.resultList }" varStatus="var">
    <tr status="${model.state }">
        <td class="taCenter">${(pageBean.currentPage -1)*pageBean.pageSize+var.count }</td>
        
	   	<td >${model.userName }</td>
	   	<td >${model.mobile }</td>
	   	<td ><shield:switchOput data="0=女|1=男" value="${model.sex }"></shield:switchOput></td>
        <td >
            <a data-url="${ctxPathA }/oa/work/userRelation/tosupervisor_search" shieldParams="{'id':'${model.id}','type':0}"  class="shieldDialog shield-icon " data-icon-title="添加用户上级" title="添加用户上级"  viewTitle="管理用户上级" viewWidth="800"><img src="${ctxPath}/images/icon/higher-level.png" /></a>
            <a data-url="${ctxPathA }/oa/work/userRelation/tosupervisor_search" shieldParams="{'id':'${model.id}','type':1}"  class="shieldDialog shield-icon " data-icon-title="添加用户下级" title="添加用户下级" viewTitle="管理用户下级"   viewWidth="800"><img src="${ctxPath}/images/icon/lower-level.png" /></a>
        </td>
    </tr>
</c:forEach>
<c:if test="${empty pageBean.resultList }">
 	<!-- 无数据时展示，有数据时展示上面的列表 -->
	<tr class="nodatatr_plugin">
        <td colspan="5" class="taCenter">暂无数据</td>
    </tr>
</c:if>
</table>
</shield:permssion>
<%@include file="/WEB-INF/view/a/include/pagination.jsp"%>